package com.cjd.common.holder;

import android.view.View;
import android.view.ViewGroup;

import androidx.annotation.NonNull;

import com.cjd.common.holder.BaseRecyclerHolder;
import com.cjd.common.utils.LogUtils;

/**
 * @Author chenjidong
 * @email 374122600@qq.com
 * created 2019/10/5
 * description mRightItem 宽度必须写死 否则无法计算
 */
public class SwipeRecyclerHolder extends BaseRecyclerHolder {

    public View mRightItem;

    public SwipeRecyclerHolder(@NonNull View itemView) {
        super(itemView);

        try {
            mRightItem = ((ViewGroup) itemView).getChildAt(1);
        } catch (ArrayIndexOutOfBoundsException e) {
            LogUtils.e("请添加删除view");
        }
    }
}
